<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <title>教育管理系统</title>
    <link href="/static/login/login.css" rel="stylesheet" type="text/css" />
    <%@include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/login.js"></script>
    <script type="text/javascript">

        function login_btn() {
            $('#login_form').form('submit', {
                url:"/login",
                success:function(data){
                    data =  $.parseJSON(data);
                    if(data.success){
                        window.location.href="/index";
                    }else{
                        $.messager.alert('温馨提示',data.msg);
                    }
                }
            });
        }
    </script>
</head>

<body>
<div class="login_box">
    <div class="login_l_img"><img src="/static/login/login-img.png" /></div>
    <div class="login">
        <div class="login_logo"><a href="#"><img id="portrait" src="/static/login/login_logo.png" /></a></div>
        <div class="login_name">
            <p>教育管理系统</p>
        </div>
        <form method="post" id="login_form">
            <input name="username" id="username" type="text" value=""  placeholder="用户名">

            <%--<span id="password_text" onclick="this.style.display='none';
            document.getElementById('password').style.display='block';document.getElementById('password').focus().select();" >密码</span>--%>

            <input name="password" type="password" id="password" value="" style="display:block;" placeholder="密码"/>
            <input value="登录" style="width:100%;" type="button" onclick="login_btn()">
        </form>
    </div>
    <div class="copyright">狼码教育有限公司 版权所有©2018-2020 技术支持电话：000-00000000</div>
</div>
</body>
</html>